import axios from '@/utils/request.js'

export const getPlayStatus = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/getStatus',
		data
	})
}

// 播放上一首
export const playPrev = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/prev',
		data
	})
}

// 播放下一首
export const playNext = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/next',
		data
	})
}

// 开始播放
export const startPlay = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/start',
		data
	})
}

export const pausePlay = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/pause',
		data
	})
}

// 播放列表
export const playMusic = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/playMusic',
		data
	})
}

// 获取推荐快内容
export const getBlockList = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/getBlockList',
		data
	})
}


// 获取播放列表
export const getMusicList = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/getMusicList',
		data
	})
}
// 获取场景列表
export const getCategoryMusicList = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/getCategoryMusicList',
		data
	})
}

// 获取歌手音乐列表
export const getArtistMusicList = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/getArtistMusicList',
		data
	})
}


// 设置音量
export const setVolume = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/setVolume',
		data
	})
}

// 设置循环模式
export const setLoopType = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/setLoopType',
		data
	})
}

// 获取电台音乐列表
export const getDTMusicList = (data) => {
	return axios({
		method: 'POST',
		url: '/mico/getDTMusicList',
		data
	})
}

